<template>
  <page-body>
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center sendPost_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub sendPost_fd0_0'>
          <view class='flex flex-wrap align-center sendPost_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
          </view>
          <view class='flex flex-wrap align-center justify-end sendPost_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction align-stretch benben-flex-layout sendPost_flex_1">
        <view class='flex flex-wrap align-center sendPost_fd1_0'>
          <text class='sendPost_fd1_0_c0'>发布</text>
        </view>
        <view class='flex flex-wrap align-center sendPost_fd1_1'>
          <text class='sendPost_fd1_1_c0'>发布您的内容</text>
        </view>
        <view class='flex flex-wrap align-center justify-between'>
          <view class='flex flex-direction align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
            :data-url="`/pages/homePage/Publishlistings/Publishlistings`">
            <image class='sendPost_fd1_2_c0_c0' mode="aspectFit" :src='STATIC_URL+"164.png"'></image>
            <text class='sendPost_fd1_2_c0_c1'>发布房源</text>
          </view>
          <view class='flex flex-direction align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
            :data-url="`/pages/homePage/publishingwork/publishingwork`">
            <image class='sendPost_fd1_2_c0_c0' mode="aspectFit" :src='STATIC_URL+"165.png"'></image>
            <text class='sendPost_fd1_2_c0_c1'>发布招工</text>
          </view>
          <view class='flex flex-direction align-center' @tap.stop="goMyyalent" data-type="navigateTo"
            :data-url="`/pages/homePage/publishresume/publishresume?isMy=1`">
            <image class='sendPost_fd1_2_c0_c0' mode="aspectFit" :src='STATIC_URL+"166.png"'></image>
            <text class='sendPost_fd1_2_c0_c1'>发布简历</text>
          </view>
        </view>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </page-body>
</template>
<script>
  export default {
    components: {},


    data() {
      return {};
    },
    computed: {
      userInfo() {
        return this.$store.state.userInfo
      },
    },
    watch: {},
    onLoad(options) {

    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      goMyyalent() {
        this.$api.post(global.apiUrls.post66701a06cae37, {
          user_id: this.userInfo.id
        }).then(res => {
          if (res.data.code == 1) {
            if (res.data.data.length != 0) {
              uni.navigateTo({
                url: `/pages/homePage/publishresume/publishresume?aid=${this.userInfo.id}`
              })
            } else {
              uni.navigateTo({
                url: `/pages/homePage/publishresume/publishresume`
              })
            }
          }
        })
      },
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(255, 255, 255, 1);
    background-size: 100% auto;
  }

  .sendPost_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .sendPost_fd0_0_c0 {
    width: 120rpx;
  }

  .sendPost_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .sendPost_flex_1 {
    margin: 100rpx auto 0rpx auto;
    width: 686rpx;
  }

  .sendPost_fd1_2_c0_c1 {
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .sendPost_fd1_2_c0_c0 {
    width: 136rpx;
    height: 136rpx;
  }

  .sendPost_fd1_1_c0 {
    font-size: 30rpx;
    color: rgba(102, 102, 102, 1);
  }

  .sendPost_fd1_1 {
    margin: 24rpx 0rpx 200rpx 0rpx;
  }

  .sendPost_fd1_0_c0 {
    font-size: 56rpx;
    font-weight: 600;
  }

  .sendPost_fd1_0 {
    margin: 230rpx 0rpx 0rpx 0rpx;
  }
</style>
